<template>
<uni-shadow-root class="partials-activitiesList-simpleActivitiesList"><template name="simpleActivitiesList">
<block v-for="(item,index) in (relateBean)" :key="item.index" v-if="relateBean.length !=0">
    <view class="Box" @click="clickLink" :data-item="item">
      <view class="time1">
        <view class="timeAll"> 
          <view class="timeText"> <text :style="'color:'+(defaultColor)">{{item.promotionStatus==0?"即将开始:":"距结束:"}}</text></view>
          <view class="timeBox" :style="'background-color:'+(defaultColor)"> <text>{{countDownList[index].day}}天</text></view>
          <view class="timeText"> <text :style="'color:'+(defaultColor)">:</text></view>
          <view class="timeBox" :style="'background-color:'+(defaultColor)"> <text>{{countDownList[index].hou}}</text></view>
          <view class="timeText"> <text :style="'color:'+(defaultColor)">:</text></view>
          <view class="timeBox" :style="'background-color:'+(defaultColor)"> <text>{{countDownList[index].min}}</text></view>
          <view class="timeText"> <text :style="'color:'+(defaultColor)">:</text></view>
          <view class="timeBox" :style="'background-color:'+(defaultColor)"> <text>{{countDownList[index].sec}}</text></view>
        </view>
        <view class="conn" v-if="item.promotionStatus==0"><text :style="'color:'+(defaultColor)">{{dataArr[index]}}开抢</text></view>
      </view>
      <view v-if="item.promotionBanner" class="ListDataItemImage"><image mode="aspectFill" :src="(item.promotionBanner)+'?x-oss-process=style/preview'"></image>
      </view>
    </view>
</block>
<block v-if="relateBean.length==0">
    <view class="noproduct">
      <image mode="widthFix" src="https://image1.sansancloud.com/xianhua/2019_12/16/15/54/55_950.jpg?x-oss-process=style/preview_120"></image>
      <text>没有相关活动</text>
    </view>
</block>
</template></uni-shadow-root>
</template>

<script>

global['__wxRoute'] = 'partials/activitiesList/simpleActivitiesList'

Component({})

export default global['__wxComponents']['partials/activitiesList/simpleActivitiesList']
</script>
<style platform="mp-weixin">

</style>